<?php
class Users_model extends Model {

    function register($name, $rut, $mail)
    {
        $esc_name = $this->db->escape($name);
        $esc_mail = $this->db->escape($mail);
        $esc_rut = $this->db->escape($rut);
        $sql  = "INSERT INTO users (name,mail,rut) VALUES ($esc_name, $esc_mail, $esc_rut);";
        $this->db->query($sql);
    }


}

?>
